package com.shsxt.dao;


import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.shsxt.model.BOrder;
import com.shsxt.model.COrder;
import com.shsxt.model.DOrder;
import com.shsxt.model.JOrder;
import com.shsxt.model.KOrder;
import com.shsxt.model.Order;
import com.shsxt.model.ROrder;
import com.shsxt.model.SOrder;
import com.shsxt.model.ServicePersonal;
import com.shsxt.model.YOrder;
import com.shsxt.vo.OrderCircle;
import com.shsxt.vo.OrderQuery;

public interface OrderDao {
	//订单未完成(该用户未完成的订单)
	public List<OrderQuery> findUndoneOrder(String phoneNumber);
	public List<OrderCircle> findUndoneCircle(Map<String, Object> param);
	public List<OrderCircle> findDoneScoreCircle(Map<String, Object> param);
	public List<OrderCircle> findDoneUnscoreCircle(Map<String, Object> param);

	//订单已完成(该用户已完成的订单)
	public List<OrderQuery> findDoneOrder(String phoneNumber);
	//已完成已评价   
	public List<OrderQuery> findDoneScore(String phoneNumber);
	//已完成未评价  
	public List<OrderQuery> findDoneNoScore(String phoneNumber);
	//找这个订单
	public ROrder findROrder(String orderNumber);
	public SOrder findSOrder(String orderNumber);
	public KOrder findKOrder(String orderNumber);
	public JOrder findJOrder(String orderNumber);
	public DOrder findDOrder(String orderNumber);
	public COrder findCOrder(String orderNumber);
	public BOrder findBOrder(String orderNumber);
	public YOrder findYOrder(String orderNumber);

	//找这个订单的阿姨信息
	public ServicePersonal findPersonal(String phoneNumber);
    //去评价
	public void updateEvaluate(Map<String, Object> param);
	//取消订单
	public int cancelROrder(String orderNumber);
	public int cancelSOrder(String orderNumber);
	public int cancelKOrder(String orderNumber);
	public int cancelJOrder(String orderNumber);
	public int cancelDOrder(String orderNumber);
	public int cancelCOrder(String orderNumber);
	public int cancelYOrder(String orderNumber);
	public int cancelBOrder(String orderNumber);
	//删除订单
	public int deleteROrder(String orderNumber);
	public int deleteSOrder(String orderNumber);
	public int deleteKOrder(String orderNumber);
	public int deleteJOrder(String orderNumber);
	public int deleteDOrder(String orderNumber);
	public int deleteCOrder(String orderNumber);
	public int deleteYOrder(String orderNumber);
	public int deleteBOrder(String orderNumber);
	//去评价
	public void updateREvaluate(Map<String, Object> param);
	public void updateSEvaluate(Map<String, Object> param);
	public void updateKEvaluate(Map<String, Object> param);
	public void updateJEvaluate(Map<String, Object> param);
	public void updateDEvaluate(Map<String, Object> param);
	public void updateCEvaluate(Map<String, Object> param);
    //普通用户升级高级用户

	public void toVip(String phoneNumber);
	//此用户已取消订单
	public List<OrderQuery> findCancelOrder(String phoneNumber);
	
	//定时任务取消订单
	public int rupdateTaskCancelOrder();
	public int supdateTaskCancelOrder();
	public int kupdateTaskCancelOrder();
	public int jupdateTaskCancelOrder();
	public int dupdateTaskCancelOrder();
	public int cupdateTaskCancelOrder();
	
	
	//获取倒计时
	public String getRDaojishi(String orderNumber);
	public String getSDaojishi(String orderNumber);
	public String getKDaojishi(String orderNumber);
	public String getJDaojishi(String orderNumber);
	public String getDDaojishi(String orderNumber);
	public String getCDaojishi(String orderNumber);
	public List<YOrder> findYdaimianshi();
	public List<OrderCircle> findWorkingCircle(Map<String, Object> param1);
	public int rupdateTaskDefaultEvaluation();
	public int supdateTaskDefaultEvaluation();
	public int kupdateTaskDefaultEvaluation();
	public int jupdateTaskDefaultEvaluation();
	public int dupdateTaskDefaultEvaluation();
	public int cupdateTaskDefaultEvaluation();
	public String findOrderNew();
	public Order findTuikuanOrder(String orderNumber);
	public List<String> taskCancelOrderOrderNumbers();
	

	

	

	


	
	
	 




	

	

	

	

}
